home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _WordPropertyGet.au3 < prev    next >
Text File  |  2007-09-08  |  657b  |  14 lines

  1. ; *******************************************************
  2. ; Example 1 - Create a word window, open a document, check to see if the
  3. ;               statusbar is visible, if it is turn it off, if it isn't turn it on.
  4. ; *******************************************************
  5. ;
  6. #include <Word.au3>
  7. $oWordApp = _WordCreate (@ScriptDir & "\Test.doc")
  8. If _WordPropertyGet ($oWordApp, "statusbar") Then
  9.     MsgBox(0, "StatusBar Status", "StatusBar Visible, turning it off.")
  10.     _WordPropertySet ($oWordApp, "statusbar", False)
  11. Else
  12.     MsgBox(0, "StatusBar Status", "StatusBar Invisible, turning it on.")
  13.     _WordPropertySet ($oWordApp, "statusbar", True)
  14. EndIf